home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 8440 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  997 b 

  1. Path: access1.digex.net!not-for-mail
  2. From: ell@access1.digex.net (Ell)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Virtual Constructors (how to implement)?
  5. Date: 18 Feb 1996 13:36:39 GMT
  6. Organization: The Universe
  7. Message-ID: <4g7a17$rj@news4.digex.net>
  8. References: <4g0lle$nmq@jobe.shell.portal.com> <31250177.4CAD@cs.rpi.edu>
  9. NNTP-Posting-Host: access1.digex.net
  10. X-Newsreader: TIN [UNIX 1.3 950824BETA PL0]
  11.  
  12. Bowden Wise (wiseb@cs.rpi.edu) wrote:
  13. :...
  14. : This is known as the handle/body idiom; Socket is the handle
  15. : where Packet is the body.  It is also called the "Bridge"
  16. : pattern by Gamma, Helm, Johnson, and Vlissides in Design Patterns: 
  17. : Elements of Reusable Object-Oriented Software.
  18.  
  19. As I've used them the handle/body idiom is more about two classes/objects
  20. acting as one abstraction, and the bridge about relating two related
  21. abstractions.  This is also what I get from my reading of Stroustrup 
  22. C++PL, Coplien's Advanced C++ (handle/body) and the Design Patterns book 
  23. (bridge).
  24.  
  25. Elliott
  26.